//
//  ShellLiquidationViewController.m
//  ShellWallert
//
//  Created by lvzhao on 2019/9/27.
//  Copyright © 2019年 VV. All rights reserved.
//

#import "ShellLiquidationViewController.h"
#import "ShellLiquidationView.h"
#import "ShellLiquidationViewModel.h"



@interface ShellLiquidationViewController ()

@property (nonatomic,strong) ShellLiquidationView *liquidationView;

@property (nonatomic,strong) ShellLiquidationViewModel *viewModel;

@end

@implementation ShellLiquidationViewController


- (instancetype)init
{
    self = [super init];
    if (self) {
        
    }
    return self;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.title = LZLocalizedString(@"清算");
    
    [self setupUI];
    
    //获取清算的文案
    [self.viewModel liquidationDesc];
    
}

- (void)viewWillAppear:(BOOL)animated{
    [super viewWillAppear:animated];
    
    self.navigationController.navigationBar.barTintColor = COLOR_BACKGROUND;

}

#pragma mark - setupUI
- (void)setupUI{
    
    [self.view addSubview:self.liquidationView];
    [self.liquidationView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.edges.mas_equalTo(0);
    }];
    
    
}

#pragma mark - actions

#pragma mark - custool

#pragma mark - get && set
- (ShellLiquidationView *)liquidationView{
    
    if(!_liquidationView){
        _liquidationView = [[ShellLiquidationView alloc] initViewModel:self.viewModel];
    }
    return _liquidationView;
}

- (ShellLiquidationViewModel *)viewModel{
    if(!_viewModel){
        _viewModel = [[ShellLiquidationViewModel alloc] init];
        
    }
    return _viewModel;
}
/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
